package demo4;

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
@SuppressWarnings({"all"})

public class Test02 {
    public static void main(String[] args) throws IOException {
        Properties properties = new Properties();
        properties.setProperty("name", "admin");
        properties.setProperty("password", "123456");
        properties.setProperty("name", "李四");
        properties.setProperty("password2", "12345678");

        properties.store(new FileOutputStream("src\\demo4\\01.properties"),null);
    }
}
